package com.ecommerce.common;

public class Result<T> {
    private boolean success;
    private T data;

    public static <T> Result<T> success(T data) {
        Result<T> r = new Result<>();
        r.success = true;
        r.data = data;
        return r;
    }

    public boolean isSuccess() { return success; }
    public T getData() { return data; }
} 